package com.getword.domain;

import com.getword.mongo.annotations.GeneratedLongValue;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;

/**
 * 课程专题
 */
@Document(collection = "subject")
@Setter
@Getter
@ToString
public class Subject implements Serializable {
    @Id
    @GeneratedLongValue
    @Field("_id")
    private Integer id;
    private String name;
    private Course course;

}
